
import requests

# 查询传参
params = {
    "name": "zhangsan",
    "age": 18
}

headers = {
    "hhh": "123"
}

response = requests.get("http://httpbin.org/get", params=params, headers=headers)

# age = 19
# response = requests.get(f"http://httpbin.org/get?name=zhangsan&age={19}")

print(response.text)